﻿@{
    Dictionary<string, string> msg = ViewBag.msg;
}
<nav id="headerContainer" style="background-color:#fff" class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/index" id="logo">
                <img src="/images/logo/leanote_black.png" class="hide" title="leanote, @msg["moto"]" />
                @if (ViewBag.demonstrationOnly)
                {
                    <span>仅供演示用途</span>
                }
            </a>
        </div>

        <div id="navbar" class="navbar-collapse collapse">
            <div id="lang">
                <a data-lang="en-us">English</a>
                <a data-lang="de-de">Deutsch</a>
                <a data-lang="fr-fr">Français</a>
                <a data-lang="zh-cn">简体中文</a>
                <a data-lang="zh-hk">繁体中文</a>
                <a data-lang="pt-pt">Portugu&ecirc;s</a>
                <a data-lang="es-co">Spanish</a>
            </div>

            <ul class="nav navbar-nav navbar-left">
                <li><a href="/index#" data-target="body" class="smooth-scroll">@msg["home"]</a></li>
                <li style="position: relative; margin-right: 3px;">
                    <a href="http://bbs.leanote.com" target="_blank" class="">@msg["discussion"]</a>
                </li>

                <li><a id="leanoteBlog" href="http://lea.leanote.com" target="_blank" title="Leanote explore, leanote blog platform" class="">@msg["Leanote Explore"]</a></li>
                <li><a id="leanoteApp" href="http://app.leanote.com" target="_blank" title="Leanote App" class="">@msg["desktopApp"]</a></li>
                <li>
                    <a href="http://leanote.org#donate" target="_blank" class="">@msg["donate"]</a>
                </li>

                <li><a href="http://leanote.org" target="_blank" title="leanote.org" class="">leanote.org</a></li>
                @if (ViewBag.userInfo != null)
                {

                    <li id="loginBtns">
                        @msg["hi"], @ViewBag.userInfo.Username
                        <a href="@ViewBag.noteUrl">@msg["myNote"]</a>
                        <a href="/auth/logout">@msg["logout"]</a>
                    </li>
                }
               
            </ul>
        </div>
    </div>
</nav>